package com.erp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//包扫描，mybatis相关配置
@MapperScan({"com.erp.stock.mapper","com.erp.produce.mapper"})
//开启SwaggerUI
@EnableSwagger2
//开启事务
@EnableTransactionManagement
@SpringBootApplication
public class ErpApplication {

    public static void main(String[] args) {
        SpringApplication.run(ErpApplication.class, args);
    }
}